import express from "express";
import registerAsStudent from "@/controllers/user/register-as-student";
import registerAsTeacher from "@/controllers/user/register-as-teacher";
import deleteUser from "@/controllers/user/delete-user";
import updateUserInfo from "@/controllers/user/update-user-info";
import updateStudentInfo from "@/controllers/user/update-student-info";
import bindStudentContactPhoneNumber from "@/controllers/user/bind-student-contact-phone-number";
import bindStudentSchoolCode from "@/controllers/user/bind-student-school-code";
import getUserInfo from "@/controllers/user/get-user-info";
import selectStudentInfo from "@/controllers/user/select-student-info";

const router = express.Router();
router.post("/register-as-student", registerAsStudent);
router.post("/register-as-teacher", registerAsTeacher);
router.delete("/delete-user", deleteUser);
router.patch("/update-user-info", updateUserInfo);
router.patch("/update-student-info", updateStudentInfo);
router.patch("/bind-student-contact-phone-number", bindStudentContactPhoneNumber);
router.patch("/bind-student-school-code", bindStudentSchoolCode);
router.get("/get-user-info", getUserInfo);
router.get("/select-student-info", selectStudentInfo);

export default router;
